﻿//
// Copyright (c) 2024 BPer
//

#ifndef BPERAUDIOPROC_BPERPREPROCESSSPEEX_H_
#define BPERAUDIOPROC_BPERPREPROCESSSPEEX_H_
#include <bperutil/BPerType.h>

typedef struct{
	void* context;
	void (*init)(void* context,int32_t pFrameSize, int32_t sampleRate, int32_t pchannel);
	void (*state_reset)(void* context);
	void (*preprocess_run)(void* context,short *pcm);
	void (*closePreprocess)(void* context);
}BPerPreProcess;
#ifdef __cplusplus
extern "C"{
#endif

void bPer_create_preProcess(BPerPreProcess* pre);
void bPer_destroy_preProcess(BPerPreProcess* pre);

#ifdef __cplusplus
}
#endif

#endif /* BPERAUDIOPROC_BPERPREPROCESSSPEEX_H_ */
